"""
ihrm 接口对象层
"""
import requests


# 定义ihrm登录接口类
class IhrmLoginApi():
    @classmethod
    def ihrm_login(cls, login_data):
        resp =requests.post(url="http://127.0.0.1:9002/sys/login", json=login_data)


        return resp


# 测试封装接口是否成功
if __name__ == "__main__":
    data = {"mobile": "13800000001", "password": "123456"}
    resp = IhrmLoginApi.ihrm_login(data)
    print("登录成功响应结果：", resp.json())